let http =require('http');
let server = http.createServer((req,res)=>{
 if(req.url=='/favicon.ico'){
  return;
 }
 res.setHeader('Content-type','text/html;charset=utf-8');
 if(req.url=='/'||req.url=='/index'){
   res.end('<h>首页</h>');
 }else if(req.url=='/login'){

    res.end('<h>登录</h>');
 }else if (req.url=='/regeister')
{
 res.end('注册');
}else if(req.url=='/goodslist'){
    res.end('商品列表');
}else if(req.url=='/orderslist'){
    res.end('订单列表');
}else{
    res.end('004');
}
 
}).listen(8181,'www.lius.com',()=>{
 console.log('开启服务');
});

